package me.youline.dataServer.service.support.config;

import java.util.ArrayList;
import java.util.List;

import me.youline.dataServer.service.image.ImageSize;

/**
 * 图片尺寸配置类
 * @author linhan
 *
 */
public abstract class ImageSizeConfig {
	
	private List<ImageSize> list = new ArrayList<ImageSize>();
	
	private boolean isInit = false; 
	
	public List<ImageSize> getAllImageSize(){
		if(!isInit){
			loadImageSizes(list);
			isInit = true;
			return list;
		}else{
			return list;
		}
		
	}

	 abstract protected void loadImageSizes(List<ImageSize> list);
		
}
